<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<p>
		maomao365.com <br />
		javascript 数组存入localStorage的方法分享
		</p>
		<hr />
		<script>
		  var myInfo = new Array();
		      myInfo[0] = "猫猫教程-10";
		      myInfo[1] = "猫猫教程-20";
		      myInfo[2] = "猫猫教程-31";
		 
		        localStorage["myInfo"] = JSON.stringify(myInfo);
		 
		var infos = JSON.parse(localStorage["myInfo"]);
		document.write(infos);
		</script>
	</body>
</html>
